Skip to content

Add Bfloat16 support - #361

Open
franz101 wants to merge 5 commits into
xzkostyan:masterfrom
franz101:bfloat16
Open

Add Bfloat16 support#361
franz101 wants to merge 5 commits into
xzkostyan:masterfrom
franz101:bfloat16

Conversation

@franz101

@franz101 franz101 commented Jan 8, 2025

Copy link
Copy Markdown

BFloat16 support for Clickhouse 24.12

#359

@franz101

Copy link
Copy Markdown
Author

@xzkostyan mind approving this?

def visit_float32(self, type_, **kw):
return 'Float32'

def visit_bfloat32(self, type_, **kw):

@joe-clickhouse joe-clickhouse Sep 25, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @franz101, think you have a typo here:

Suggested change
def visit_bfloat32(self, type_, **kw):
def visit_bfloat16(self, type_, **kw):

@joe-clickhouse joe-clickhouse left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the typo, I think it looks good. One small thing to keep in mind is that as we introduce new types into this lib, it'll work fine with default http transport, but it will not work if using tcp via clickhouse-driver until the (de)serialization work is implemented over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants